package cn.wolfcode.education.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
//考勤管理
@Setter@Getter@ToString
public class Attentance {

    private Integer id;
    private Date signOn;        //签到时间
    private Date signOut;       //签退时间
    private Boolean onStatus;      //签到状态
    private Boolean downStatus = null;    //签退状态
    private Employee employee;    //员工
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date nowDate;       //有效日期
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date signUp;        //补签时间
}